import React from 'react';
import { connect } from 'dva';
import PageContent from '../../../components/PageContent';
import VersionAnalysisTable from './VersionAnalysisTable';

@connect(({ analysis, loading }) => ({ analysis, loading: loading.models.analysis }))
class VersionAnalysis extends React.Component {
  render() {
    const { dispatch, loading, analysis: { versionAnalysis } } = this.props;
    const TableProps = {
      dispatch,
      loading,
      versionAnalysis,
    };
    return (
      <PageContent title="版本需求变更统计">
        <VersionAnalysisTable {...TableProps} />
      </PageContent>
    );
  }
}

export default VersionAnalysis;
